const state = {
  number: 1
}

const mutations = {
  addNumber(state) {
    state.number++
  },
  minusNumber(state) {
    state.number--
  }
}

const actions = {
  addNumber({
    commit
  }) {
    commit('addNumber')
  },
  minusNumber({
    commit
  }) {
    commit('minusNumber')
  }
}

export default {
  state,
  actions,
  mutations
}
